<template>
  <!-- Vue3不需要根标签了 -->
  <div class="title">hello vue3</div>
  <p>{{ count }}</p>
</template>

<script lang="ts">
import { defineComponent } from "vue";

// 增强类型推论
export default defineComponent({
  name: "App",
  data() {
    return {
      count: 0,
    };
  },
});
</script>

<style scoped>
.title {
  color: red;
}
</style>
